﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Cinematograph.Extentions
{
    public static class TextHelper
    {
        public static MvcHtmlString Text(this HtmlHelper helper, string mystring)
        {
            //StringBuilder sb = new StringBuilder();

            if (string.IsNullOrEmpty(mystring))
            {
                return MvcHtmlString.Empty;
            }

            var textString = mystring.Replace(Environment.NewLine, "<br />");
            return MvcHtmlString.Create(textString);
        }
    }
}